<?php
/**
 * Initialize the system
 */
define('TL_MODE', 'FE');
require('system/initialize.php');

class GetStock extends Controller
{
	/**
	 * This is class construct function.
	 * @params null
	 * @Return null
	 */
	public function __construct()
	{
		parent::__construct();		
	}
	
	/**
	 * This fuction will get the size and stock by color.
	 * @param string color title
	 * @param string selected size id
	 * @param string selected quantity of stock
	 */
	public function getStockbyColor($colour="", $id_size="", $stock="")
	{
		if (!$colour || !$id_size || !$stock)
			return "";
	}
}

$objStock = new GetStock();
$action = $_POST['action'];
switch($action){
	case "changeColour":
		
		break;
	case "updatebackpocket":
		
		break;
	case "removefrombackpocket":
		
		break;		
}
?>